package com.neusoft.bizcore.notice.notification.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@Entity
@Table(name = "neuiot_notice_record_system")
public class NoticeRecordSystem extends SendMsgStatus {

    private static final long serialVersionUID = -508602609550046709L;

    @Length(max = 255, message = "通知类别不能超过{max}位")
    @Column(length = 255, nullable = true)
    private String noticeType;

    @Length(max = 255, message = "路由不能超过{max}位")
    @Column(length = 255, nullable = true)
    private String noticeRoute;

    @Length(max = 1023, message = "通知用户不能超过{max}位")
    @Column(length = 255, nullable = true)
    String users;

    @Length(max = 2047, message = "内容不能超过{max}位")
    @Column(length = 2047, nullable = true)
    private String content;

    @Length(max = 1023, message = "业务信息不能超过{max}位")
    @Column(length = 1023, nullable = true)
    private String businessInfo;
}
